Bookmarks provide the ideal way to mark specific lines in a file when moving around, providing the ability to jump to the next or previous bookmark, or cycle through the bookmarks.
Bookmarks have a toggle state. This means they can be added and removed in exactly the same way. For example, if a line has an existing bookmark, toggling the bookmark will remove it; if not, one will be added.
The following commands are available using the Edit, Bookmarks menu:
To |
Select |
Toggle (add or remove) a bookmark. |
Toggle Bookmark (CTRL+F2) |
Move to the next bookmark. |
Next Bookmark (F2) |
Move to the previous bookmark. |
Previous Bookmark (SHIFT+F2) |
Clear all bookmarks in the file. |
Clear All Bookmarks (CTRL+SHIFT+F2) |
Note |
The direction in which the insertion point is moved when selecting the next or previous bookmark is reversed when reaching the beginning or end of the file. |
In addition to manually setting bookmarks, Programmer Studio allows bookmarks to be set on the results of a find. This can be particularly useful when determining what to include in partial find and replace operations. Please refer to finding text in the previous section for more information.